﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace MYQQX
{
    public partial class InitForm : Form
    {
        public GameInfo _GameInfo { get; set; }

        public InitForm()
        {
            InitializeComponent();
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            _GameInfo = new GameInfo();
            _GameInfo.H1 = rbH12.Checked || rbH13.Checked;
            _GameInfo.H2 = rbH12.Checked || rbH23.Checked;
            _GameInfo.H3 = rbH13.Checked || rbH23.Checked;

            _GameInfo.AI_XY = rbAI1.Checked ? 1 : (rbAI2.Checked ? 2 : 3);

            this.DialogResult = DialogResult.OK;
        }
    }
}
